package com.df.dht;

import com.df.dht.dht.Spider;
import com.df.dht.utils.BencodeUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.Map;

/**
 *https://github.com/xwlcn/Dodder
 */
@EnableScheduling
@SpringBootApplication
public class DhtApplication {

    public static void main(String[] args) {
        SpringApplication.run(DhtApplication.class, args);
//        InputStream stream = DhtApplication.class.getClassLoader().getResourceAsStream("base/Let.the.Bullets.Fly.torrent");
//        Map<String, Object> stringObjectMap = BencodeUtils.decodeFromStream(stream);
//        System.out.println(1);

    }

}
